package com.unit.testng;

import org.testng.annotations.Test;

/**
 * @author bigFish
 * @Title: 超时测试
 */
public class TimeOutTest {
//    响应时间小于3000毫秒测试通过
    @Test(timeOut = 3000)
    public void TestSuccess() throws InterruptedException {
        Thread.sleep(2000);
    }

    @Test(timeOut = 2000)
    public void TestFailed() throws InterruptedException {
        Thread.sleep(3000);
    }
}
